{extend name="layout/layout" /}

{block name="pagecss"}
<style>
	table.dataTable.no-footer {
		border-bottom: 0 !important;
	}
	#data-table_processing {
		border: 0 !important;
		position: relative;
	}
</style>
<link href="__STATIC__/admin/pages/css/store.css" rel="stylesheet" type="text/css" />
<link href="__STATIC__/plugins/umeditor/umeditor.min.css" rel="stylesheet" type="text/css" />
{/block}

{block name="content"}
<div class="row js-check-wrap">
	<div class="col-lg-12">
		<div class="box box-success">
			<div class="box-header with-border">
				<div class="row">
					<div class="col-md-9">
						{$title}
					</div>
				</div>
				<div class="box-tools pull-right">
					{if condition="($admin.roleType == 0) or ($admin.roleType == 1) "}<button class="btn btn-primary btn-sm" id="btn_new_tenant"><i class="fa fa-plus"></i> 新增门店</button>{/if}
				</div>
			</div>
			<div class="box-body ">
				<form class="js-ajax-form" method="post">
					<div class="table-responsive">
						<table class="table table-striped table-bordered table-hover table-checkable order-column" id="table_store">
							<thead>
							<tr>
								<th>门店名称</th>
								<th>地址</th>
								<th>电话</th>
								<th>营业时间</th>
								<th>添加时间</th>
								<th>打烊/营业设置</th>
								<th>操作</th>
							</tr>
							</thead>
							<tbody>
							</tbody>
						</table>
					</div>
				</form>
			</div>
		</div>
	</div>
</div>
<input type="hidden" id="storeFee" value="{$Think.config.store_fee/100}">
<input type="hidden" id="balance" value="{$balance}">
{/block}

{block name="pagescript"}
<script>
    var storeAdd_url = "{:url('admin/store/add')}";  //添加门店链接地址
    var storeList_url = "{:url('admin/store/indexApi')}";  //获得门店列表API
    var storeEdit_url = "{:url('admin/store/edit')}";   //编辑门店链接地址
    var storeProduct_url = "{:url('admin/store/product')}";  //门店货架查看地址
    var storeDel_url = "{:url('admin/store/delete')}";  //门店删除地址
    var storeCheck_url = "{:url('admin/store/checkOne')}";  //检测登录商户已有门店数量
    var storeFee_url = "{:url('admin/store/deductions')}";  //扣除开通门店费用接口

    var product_url = "{:url('admin/store/product')}";

    var checkWxstatus = "{:url('admin/store/wxStatus')}";
    var program_url = "{:url('admin/miniProgram/index')}";
</script>
<script src="__STATIC__/admin/js/include.js" type="text/javascript"></script>
<script src="__STATIC__/admin/pages/js/store_index.js" type="text/javascript"></script>
{/block}